def egg(begin, end):
    """zhanggaungxuan
    get the number of eggs
    """
    number = 0
    while begin < end:
        if begin%2 == 1 and begin%3 == 0 \
           and begin%4 == 1 and begin%5 == 4 \
           and begin%6 == 3 and begin%7 == 5 \
           and begin%8 == 1 and begin%9 == 0:
            print begin,
            number += 1
        begin += 1
    print "\nThe total number is ",
    print number

if __name__ == "__main__":
    egg(0, 10000)
